package com.neu.flashmall.product.mapper;

import com.neu.flashmall.product.entity.PmsCategoryBrand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 12615
* @description 针对表【pms_category_brand_relation(品牌分类关联)】的数据库操作Mapper
* @createDate 2022-07-11 15:53:27
* @Entity com.neu.flashmall.product.entity.PmsCategoryBrand
*/
@Mapper
public interface PmsCategoryBrandMapper {
    int deleteByCategoryAndBrandId(@Param("category_id") Long category_id, @Param("brand_id") Long brand_id);

    int deleteByPrimaryKey(Long id);

    int insert(PmsCategoryBrand record);

    int insertSelective(PmsCategoryBrand record);

    PmsCategoryBrand selectByPrimaryKey(Long id);

    PmsCategoryBrand selectByCategoryAndBrandId(@Param("category_id") Long category_id, @Param("brand_id") Long brand_id);

    int updateByPrimaryKeySelective(PmsCategoryBrand record);

    int updateByPrimaryKey(PmsCategoryBrand record);

    List<PmsCategoryBrand> getByCategoryId(Long categoryId);
}
